Не могу выполнить запросYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%20date.getFullYear()%20+%20'-'%20+%20(parseInt(date.getMonth())+1)%20+%20'-'%20' at line 3
SELECT mod_event.*, mod_event_cat.name as parent FROM `mod_event`
LEFT JOIN mod_event_cat ON (mod_event_cat.id = mod_event.parent)
WHERE DATE_FORMAT(DATE,'%Y-%m-%d') = ''%20+%20date.getFullYear()%20+%20'-'%20+%20(parseInt(date.getMonth())+1)%20+%20'-'%20+%20date.getDate()%20+%20'' ORDER BY mod_event.date
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/sarbl/sarbl.ru/docs/core/mod/mod_event.php on line 83